<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="../../common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>通知列表</title>
<link type="text/css" rel="stylesheet" href="${css_ctx }/main_style.css" />
<script type="text/javascript" src="${ctx }/common/js/proving.js"></script>
<script type="text/javascript" language="javascript">
 function submitMyFrom(path){
  document.getElementById('form1').action=path;
  document.getElementById('form1').submit();
 }
</script>
</head>

<body class="content_bg1">

<!-- 标题-->	
<div class="content_tittle">
<c:if test="${!empty content_tittle}">
	${content_tittle}
	<c:remove var="content_tittle" scope="session"/>
</c:if>
</div>
<!--  标题  end-->	

<!-- 提示信息 -->	
<c:if test="${!empty msg}">
	<div class="mag">提示信息：${msg}</div>
	<c:remove var="msg" scope="session"/>
</c:if>
<!-- 提示信息  end-->	


<table width="100%" border="0" cellpadding="0" cellspacing="1" class="list_tab">
	<tr>
		<td>
			<strong>编号</strong>
		</td>
		<td>
			<strong>通知标题</strong>
		</td>
		<td>
			<strong>发布时间</strong>
		</td>
		<td>
			<strong>明细</strong>
		</td>
	</tr>

	<c:if test="${!empty pm.datas}">
		<c:forEach items="${pm.datas}" var="notice" varStatus="status">
			<tr>
				<td>
					[${status.count}]
				</td>
				<td style="text-align: left;">
				 &nbsp;&nbsp;<a href="${ctx }/notices?cmd=watch&nid=${notice.nid}">${notice.ntitle}</a>
				</td>
				
				<td>
					${notice.ntime}
				</td>
				<td>
					<img width="14" height="14" src="${img_ctx }/114.gif" />&nbsp;<a href="${ctx }/notices?cmd=watch&nid=${notice.nid}">查看</a> 
						
				</td>
			</tr>
		</c:forEach>
	</c:if>
	<c:if test="${empty pm.datas}">
		<tr>
			<td colspan="5" align="center" bgcolor="#ffffff">
				没有找到相应的记录
			</td>
		</tr>
	</c:if>

</table>

<div class="pages">
	<pg:pager url="${ctx}/notices" items="${pm.total}"
		export="currentPageNumber=pageNumber" maxPageItems="10"
		maxIndexPages="10">
		<pg:first>
			<a href="${pageUrl}&cmd=list_watch">首页</a>&nbsp;&nbsp;
		</pg:first>  
	                                        [第${currentPageNumber}页]&nbsp;/&nbsp;[共${pm.total}条记录]&nbsp;&nbsp;
	                                       <pg:prev>
			<a href="${pageUrl }&cmd=list_watch">上一页</a>&nbsp;&nbsp;
		</pg:prev>
		<pg:pages>
			<c:choose>
				<c:when test="${currentPageNumber eq pageNumber}">
					<font color="red">${pageNumber }</font>&nbsp;&nbsp;
				</c:when>
				<c:otherwise>
					<a href="${pageUrl }&cmd=list_watch">${pageNumber }</a>&nbsp;&nbsp;
				</c:otherwise>
			</c:choose>
		</pg:pages>
		<pg:next>
			<a href="${pageUrl }&cmd=list_watch">下一页</a>&nbsp;&nbsp;
		</pg:next>
		<pg:last>
			<a href="${pageUrl }&cmd=list_watch">尾页</a>&nbsp;&nbsp;
		</pg:last>
	</pg:pager>
</div>
<%@ include file="../../common/footer.jsp"%>
</body>
</html>
